package blog.dto;

import blog.entity.Video;
import blog.entity.VideoSrc;
import lombok.Data;

import java.util.List;

@Data
public class VideoDetails extends Video {
    private String typeName;
    private List<VideoSrc> videoSrcList;


    public void setVideo(Video video) {
        this.setId(video.getId());
        this.setTypeId(video.getTypeId());
        this.setName(video.getName());
        this.setIntroduction(video.getIntroduction());
        this.setPicture(video.getPicture());
        this.setPerformer(video.getPerformer());
        this.setDirector(video.getDirector());
        this.setCreateTime(video.getCreateTime());
        this.setUpdateTime(video.getUpdateTime());
    }
}
